package com.syqc.maps.utils

import android.view.View
import com.amap.api.navi.INaviInfoCallback
import com.amap.api.navi.model.AMapNaviLocation
import com.syqc.comlib.custom.MLoadingDialog

class SimpleINaviInfoCallback : INaviInfoCallback {
    override fun onGetNavigationText(p0: String) {

    }

    override fun onCalculateRouteSuccess(p0: IntArray) {
        MLoadingDialog.dismiss()
    }

    override fun onInitNaviFailure() {
        MLoadingDialog.dismiss()
    }

    override fun onStrategyChanged(p0: Int) {
    }

    override fun onScaleAutoChanged(p0: Boolean) {

    }

    override fun onReCalculateRoute(p0: Int) {

    }

    override fun getCustomNaviView(): View? {
        return null
    }

    override fun onDayAndNightModeChanged(p0: Int) {

    }

    override fun onCalculateRouteFailure(p0: Int) {
        MLoadingDialog.dismiss()

    }

    override fun getCustomMiddleView(): View? {
        return null
    }

    override fun onMapTypeChanged(p0: Int) {

    }

    override fun onLocationChange(p0: AMapNaviLocation?) {

    }

    override fun getCustomNaviBottomView(): View? {
        return null
    }

    override fun onArrivedWayPoint(p0: Int) {

    }

    override fun onArriveDestination(p0: Boolean) {

    }

    override fun onStartNavi(p0: Int) {
        MLoadingDialog.dismiss()
    }

    override fun onStopSpeaking() {

    }

    override fun onExitPage(p0: Int) {

    }

    override fun onNaviDirectionChanged(p0: Int) {

    }

    override fun onBroadcastModeChanged(p0: Int) {

    }
}